Optimal. Leaf size=395 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (a g+3 b c)-\sqrt{a} (3 a i+b e)\right )}{16 \sqrt{2} a^{7/4} b^{7/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (a g+3 b c)-\sqrt{a} (3 a i+b e)\right )}{16 \sqrt{2} a^{7/4} b^{7/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{b} (a g+3 b c)+\sqrt{a} (3 a i+b e)\right )}{8 \sqrt{2} a^{7/4} b^{7/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{b} (a g+3 b c)+\sqrt{a} (3 a i+b e)\right )}{8 \sqrt{2} a^{7/4} b^{7/4}}+\frac{(a h+b d) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{x \left (x (b d-a h)+x^2 (b e-a i)-a g+b c+b f x^3\right )}{4 a b \left (a+b x^4\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.492387, antiderivative size = 395, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 10, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1858, 1876, 275, 205, 1168, 1162, 617, 204, 1165, 628} \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (a g+3 b c)-\sqrt{a} (3 a i+b e)\right )}{16 \sqrt{2} a^{7/4} b^{7/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (a g+3 b c)-\sqrt{a} (3 a i+b e)\right )}{16 \sqrt{2} a^{7/4} b^{7/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{b} (a g+3 b c)+\sqrt{a} (3 a i+b e)\right )}{8 \sqrt{2} a^{7/4} b^{7/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{b} (a g+3 b c)+\sqrt{a} (3 a i+b e)\right )}{8 \sqrt{2} a^{7/4} b^{7/4}}+\frac{(a h+b d) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{x \left (x (b d-a h)+x^2 (b e-a i)-a g+b c+b f x^3\right )}{4 a b \left (a+b x^4\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1858
Rule 1876
Rule 275
Rule 205
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{c+d x+e x^2+f x^3+g x^4+h x^5+196 x^6}{\left (a+b x^4\right )^2} \, dx &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}-\frac{\int \frac{-b (3 b c+a g)-2 b (b d+a h) x-b (588 a+b e) x^2}{a+b x^4} \, dx}{4 a b^2}\\ &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}-\frac{\int \left (-\frac{2 b (b d+a h) x}{a+b x^4}+\frac{-b (3 b c+a g)-b (588 a+b e) x^2}{a+b x^4}\right ) \, dx}{4 a b^2}\\ &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}-\frac{\int \frac{-b (3 b c+a g)-b (588 a+b e) x^2}{a+b x^4} \, dx}{4 a b^2}+\frac{(b d+a h) \int \frac{x}{a+b x^4} \, dx}{2 a b}\\ &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}-\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \int \frac{\sqrt{a} \sqrt{b}-b x^2}{a+b x^4} \, dx}{8 a b^2}+\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \int \frac{\sqrt{a} \sqrt{b}+b x^2}{a+b x^4} \, dx}{8 a b^2}+\frac{(b d+a h) \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,x^2\right )}{4 a b}\\ &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}+\frac{(b d+a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{16 \sqrt{2} a^{5/4} b^{7/4}}+\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{16 \sqrt{2} a^{5/4} b^{7/4}}+\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{16 a b^2}+\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{16 a b^2}\\ &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}+\frac{(b d+a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{16 \sqrt{2} a^{5/4} b^{7/4}}-\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{16 \sqrt{2} a^{5/4} b^{7/4}}+\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 \sqrt{2} a^{5/4} b^{7/4}}-\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 \sqrt{2} a^{5/4} b^{7/4}}\\ &=\frac{x \left (b c-a g+(b d-a h) x-(196 a-b e) x^2+b f x^3\right )}{4 a b \left (a+b x^4\right )}+\frac{(b d+a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}-\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 \sqrt{2} a^{5/4} b^{7/4}}+\frac{\left (588 a+b e+\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 \sqrt{2} a^{5/4} b^{7/4}}+\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{16 \sqrt{2} a^{5/4} b^{7/4}}-\frac{\left (588 a+b e-\frac{\sqrt{b} (3 b c+a g)}{\sqrt{a}}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{16 \sqrt{2} a^{5/4} b^{7/4}}\\ \end{align*}
Mathematica [A] time = 0.344446, size = 415, normalized size = 1.05 \[ \frac{-\frac{8 a^{3/4} b^{3/4} (a (f+x (g+x (h+i x)))-b x (c+x (d+e x)))}{a+b x^4}-2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (4 a^{5/4} \sqrt [4]{b} h+3 \sqrt{2} a^{3/2} i+4 \sqrt [4]{a} b^{5/4} d+\sqrt{2} \sqrt{a} b e+\sqrt{2} a \sqrt{b} g+3 \sqrt{2} b^{3/2} c\right )+2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (-4 a^{5/4} \sqrt [4]{b} h+3 \sqrt{2} a^{3/2} i-4 \sqrt [4]{a} b^{5/4} d+\sqrt{2} \sqrt{a} b e+\sqrt{2} a \sqrt{b} g+3 \sqrt{2} b^{3/2} c\right )+\sqrt{2} \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (3 a^{3/2} i+\sqrt{a} b e-a \sqrt{b} g-3 b^{3/2} c\right )+\sqrt{2} \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-3 a^{3/2} i-\sqrt{a} b e+a \sqrt{b} g+3 b^{3/2} c\right )}{32 a^{7/4} b^{7/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.01, size = 654, normalized size = 1.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09558, size = 795, normalized size = 2.01 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]